package com.zdlog.wenjuan.util;

import com.zdlog.wenjuan.VO.ResultBoolenVO;
import com.zdlog.wenjuan.VO.ResultVO;

/**
 * @program: sell
 * @PACKAGE_NAME: com.zdlog.sell.util
 * @author: Kuaile
 * @create: 2018-01-31 14:33
 **/
public class ResultBoolenVOUtil {

    public static ResultBoolenVO success(Object object) {
        ResultBoolenVO resultBoolenVO = new ResultBoolenVO();
        resultBoolenVO.setData(object);
        resultBoolenVO.setOk(true);
        resultBoolenVO.setMsg("成功");
        return resultBoolenVO;
    }
    public static ResultBoolenVO success() {
        return success(null);
    }




    public static ResultBoolenVO error( String msg) {
        ResultBoolenVO resultBoolenVO = new ResultBoolenVO();
        resultBoolenVO.setOk(false);
        resultBoolenVO.setMsg(msg);
        return resultBoolenVO;
    }

}
